namespace Aurora.AI.MetaGLM.Models.RequestModels.ImageToTextModels
{

    public class ImageToTextMessageItem : MessageItem
    {
        public ImageToTextMessageItem()
        {
        }
        public ImageToTextMessageItem(string role)
        {
            base.role = role;
        }

        public ContentType[] content { get; set; } = new ContentType[2];

        public ImageToTextMessageItem setText(string text)
        {
            content[0] = new ContentType().setType("text").setText(text);
            return this;
        }

        public ImageToTextMessageItem setImageUrl(string image_url)
        {
            content[1] = new ContentType().setType("Image_url").setImageUrl(image_url);
            return this;
        }
    }
}